package com.itheima.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @Author: 周训发
 * @CreateTime: 2025-10-22
 * @Description: 自动填充emp和dept表的创建时间和更新时间
 * @Version: 1.0
 */

@Component
@Aspect
@Slf4j
public class fullTimeAspect {

    //定义切点
//    @Pointcut("execution(* com.itheima.service.impl.*.*(..) ) &&" +
//            "@annotation(com.itheima.anno.AutoFill)")
    private void pt(){}

//    @Before("pt()")
    public void beformAspect(JoinPoint joinPoint){
        log.info("通知类型：Before");
    }
}
